<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="tag" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<link rel="stylesheet"
	href="<%=request.getContextPath()%>/resources/css/form.css"
	type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Projects</title>
</head>
<body>
	<div class="getAllWorkers">
		<c:choose>
			<c:when test="${not empty projects}">
				<table border="0">
					<tr>
						<td id="head"><tag:message code="project.id" /></td>
						<td id="head"><tag:message code="project.projectName" /></td>
						<td id="head"><tag:message code="project.startDate" /></td>
						<td id="head"><tag:message code="project.endDate" /></td>
						<td id="head"><tag:message code="project.customerName" /></td>
						<td id="head"><tag:message code="project.shortDescription" /></td>
					</tr>
					<c:forEach var="project" items="${projects}">
						<tr>
							<td>${project.id}</td>
							<td>${project.projectName}</td>
							<td>${project.startDate}</td>
							<td>${project.endDate}</td>
							<td>${project.customerName}</td>
							<td>${project.shortDescription}</td>
						</tr>
					</c:forEach>
				</table>
			</c:when>
			<c:otherwise> Can't find projects </c:otherwise>
		</c:choose>
	</div>
</body>
</html>